import { MciSelect } from '@/components/base';
import { useDictStore } from '@/store/dict';

export const FieldTypeSelector = defineComponent({
  props: {
    fieldTypeDisabled: {
      type: Boolean,
      default: false
    }
  },
  setup(props) {
    const { fieldTypeOptions } = useDictStore();
    return () => {
      return <MciSelect disabled={props.fieldTypeDisabled} list={fieldTypeOptions} />;
    };
  }
});
